package com.numberone.master.modules.recharge.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.numberone.master.common.persistence.Page;
import com.numberone.master.common.service.CrudService;
import com.numberone.master.modules.recharge.entity.RechargeLs;
import com.numberone.master.modules.recharge.dao.RechargeLsDao;

/**
 * 流量卡充值Service
 * @author chengkang
 * @version 2018-02-09
 */
@Service
@Transactional(readOnly = true)
public class RechargeLsService extends CrudService<RechargeLsDao, RechargeLs> {
	@Autowired
	private RechargeLsDao rechargeLsDao;

	public RechargeLs get(String id) {
		return super.get(id);
	}
	
	public List<RechargeLs> findList(RechargeLs rechargeLs) {
		return super.findList(rechargeLs);
	}
	
	public Page<RechargeLs> findPage(Page<RechargeLs> page, RechargeLs rechargeLs) {
		return super.findPage(page, rechargeLs);
	}
	
	@Transactional(readOnly = false)
	public void save(RechargeLs rechargeLs) {
		super.save(rechargeLs);
	}

	@Transactional(readOnly = false)
	public void update(RechargeLs rechargeLs) {
		super.update(rechargeLs);
	}
	
	@Transactional(readOnly = false)
	public void delete(RechargeLs rechargeLs) {
		super.delete(rechargeLs);
	}
	
	@Transactional(readOnly = false)
	public void recharge(String id,String money) {
		}
	
	@Transactional(readOnly = false)
	public void examine(RechargeLs rechargeLs) {
		rechargeLsDao.examine(rechargeLs);
	}
	
	@Transactional(readOnly = false)
	public RechargeLs findRechargeLsByLsno(String lsno){
		return rechargeLsDao.findRechargeLsByLsno(lsno);
	}
	
	
}